package com.yjd.bi.system.service;

import com.yjd.bi.comm.vo.Constant;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.system.model.SysParamModel;

/**
 * <b>description</b>：系统参数表业务接口<br>
 * <b>time</b>：2018-01-12 09:26:17 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface ISysParamService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public SysParamModel insert(SysParamModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(SysParamModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id_param
	 * @return
	 * @throws Exception
	 */
	public int delete(long id_param) throws Exception;

	public SysParamModel getModelByKey(Constant.SysParamKeyEnum key) throws Exception;

	public String getValueByKey(Constant.SysParamKeyEnum key) throws Exception;
}
